cmake_minimum_required(VERSION 3.0.2)
project(vis_rviz)

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -O3 -Wall")

find_package(catkin REQUIRED COMPONENTS
        bezier
        env_edt
        bspline
        roscpp
        std_msgs
        )
find_package(Eigen3 REQUIRED)
set(Eigen3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})

catkin_package(
          INCLUDE_DIRS include
          LIBRARIES vis_rviz
          CATKIN_DEPENDS bezier env_edt bspline roscpp std_msgs
        #  DEPENDS system_lib
)

include_directories(
        include
        ${catkin_INCLUDE_DIRS}
        ${Eigen3_INCLUDE_DIRS}
        ${PROJECT_SOURCE_DIR}/third_party
)

add_library(vis_rviz
        src/vis_rviz.cpp
)

target_link_libraries(vis_rviz
        ${catkin_LIBRARIES}
)
